
import 'dart:developer';

import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';
import 'package:guochaoapp/view/barcket/barcket_page.dart';
import 'package:guochaoapp/view/home/home_page.dart';
import 'package:guochaoapp/view/mall/mall_page.dart';
import 'package:guochaoapp/view/mine/mine_page.dart';
import 'package:guochaoapp/view/shopping/shopping_page.dart';

class GCTabbarController extends GetxController {

  PageController controller = PageController();

  var currentIndex = 0.obs;
  void updateIndex(int index) {
    if (currentIndex.value == index) return;
    currentIndex.value = index;
    controller.jumpToPage(index);
  }


  List<Widget> pages = [
    GCHomePage(),
    GCMallPage(),
    GCShoppingPage(),
    GCMinePage()
  ];

}